import Layout from '@/layout'
//菜单路由
export const Routes = [
  {
    path: '/login',
    component: () => import('@/views/login/index'),
    hidden: true
  },

  {
    path: '/404',
    component: () => import('@/views/404'),
    hidden: true
  },
  //首页
  {
    path: '/',
    component: Layout,
    redirect: '/dashboard',
    children: [
    {
      path: 'dashboard',
      name: '首页',
      component: () => import('@/views/dashboard/index'),
      meta: { title: '首页', icon: 'el-icon-goblet' }
    }
  ]
  },
  //权限管理
  {
    path:"/acl" ,
    name:"Acl" ,
    component:() => import("@/layout/index.vue") ,
    meta:{ title:"权限管理" , icon: 'el-icon-coffee-cup' },
    children:[
     {
       path:"/acl/userbar/list" ,
       name:"Aclbar" ,
       component:() => import("@/views/acl/userbar/index.vue"),
       meta:{ title:"用户管理" , icon: 'el-icon-apple' }
     }, 
     {
       path:"/acl/rolebar/list" ,
       name:"Rolebar" ,
       component:() => import("@/views/acl/rolebar/index.vue"),
       meta:{  title:"角色管理" , icon: 'el-icon-grape' }
     },
     {
       path:"/acl/menubar/list" ,
       name:"Menubar" ,
       component:() => import("@/views/acl/menubar/index.vue"),
       meta:{ title:"菜单管理" , icon: 'el-icon-pear' }
     }
    ]
   },

  { path: '*', redirect: '/404', hidden: true }
]